package cn.hanna.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author smileha
 * @create 2021-10-16 10:57
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {

    private Integer code; // 结果状态码
    private String message; // 结果信息
    private T      data;  // 返回数据

    public CommonResult(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
